home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_10.lha
/
7_10
/
p_setprior.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
527b
|
16 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <process.h>
include <debug.h> /* DELETE */
/ Set the process' new priority. Return the old priority.
nt process::setpriority(int p)
if (debug) /*DELETE*/ cerr << "process" << this << "::setpriority(" << p << ")\n";
int ret = t_priority;
t_priority = p;
if (debug) /*DELETE*/ cerr << "<<<< process" << this << "::setpriority() <- " << ret << "\n";
return ret;